package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageData;
import com.woniu.entity.dto.LikeDTO;
import com.woniu.pojo.Like;
import com.woniu.pojo.TrainingInfo;


import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaosong
 * @since 2023-04-01
 */

public interface ILikeService extends IService<Like> {
//  分页查询
    PageData search(Integer currerPage, Integer pageSize, LikeDTO likeDTO);
//  按照id查询
    List<Like> selectByid(Integer id);

    Integer updateLike(Like like);

    boolean saveLike(Like like);

    boolean add(Like like);

    Integer getUnread(Integer id);

    List<Like> selectById(Integer id);
}
